#ifndef QCPAXISTICKERMETER_H
#define QCPAXISTICKERMETER_H

#include "qcustomplot/qcustomplot.h"

class QCP_LIB_DECL QCPAxisTickerMeter : public QCPAxisTicker {
  public:
    QCPAxisTickerMeter(int keyPerMeter = 1);

    void setKeyPerMeter();
    unsigned getKeyPerMeter();

    double keyToMeter(double key);

  protected:
    virtual QString getTickLabel(double tick, const QLocale &locale,
                                 QChar formatChar,
                                 int precision) Q_DECL_OVERRIDE;

  private:
    int mKeyPerMeter{1};
};

#endif // QCPAXISTICKERMETER_H
